package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.RepayDao;
import com.zhiyou100.model.Repay;

@Service
public class RepayServiceImpl implements RepayService{

	@Autowired
	private RepayDao repayDao;
	
	@Override
	public ArrayList<Repay> getPepayByProjectId(int projectId) {
		
		return repayDao.getPepayByProjectId(projectId);
	}

	@Override
	public void saveRepay(Repay repay) {
	
		repayDao.saveRepay(repay);
		
	}

	@Override
	public void updateRepay(Repay repay) {
	
		repayDao.updateRepay(repay);
		
	}

	@Override
	public void deleteRepay(int id) {
		
		repayDao.deleteRepay(id);
		
	}
	

}
